#include <iostream>
using namespace std;

int main()
{
    int a = 0, b = 0;
    cin >> a >> b;
    int x = a, y = b;
    while (y != 0)
    {
        int tmp = y;
        y = x%y;
        x = tmp;
    }
    cout << ((a/x)*b) << endl;
}
